package com.woniuxy.dudugua.service.impl;

import com.woniuxy.dudugua.entity.ProductScan;
import com.woniuxy.dudugua.mapper.ProductScanMapper;
import com.woniuxy.dudugua.service.SlideshowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

@Service
public class SlideshowServiceImpl implements SlideshowService {
    @Autowired
    private ProductScanMapper  productScanMapper;

    @Override
    public List<ProductScan> selectProductScanByTimes() throws Exception {
        List<ProductScan> productScans = productScanMapper.selectProductScanByTimes();
        if(productScans!=null){
            return   productScans;
        }
        return null;
    }
}
